package com.baobao.dao;

import com.baobao.domain.School;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage School entities.
 * 
 */
public interface SchoolDAO extends JpaDao<School> {

	/**
	 * JPQL Query - findSchoolByNameContaining
	 *
	 */
	public Set<School> findSchoolByNameContaining(String name) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByNameContaining
	 *
	 */
	public Set<School> findSchoolByNameContaining(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByPhoneContaining
	 *
	 */
	public Set<School> findSchoolByPhoneContaining(String phone) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByPhoneContaining
	 *
	 */
	public Set<School> findSchoolByPhoneContaining(String phone, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByPrimaryKey
	 *
	 */
	public School findSchoolByPrimaryKey(String id) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByPrimaryKey
	 *
	 */
	public School findSchoolByPrimaryKey(String id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByCity
	 *
	 */
	public Set<School> findSchoolByCity(String city) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByCity
	 *
	 */
	public Set<School> findSchoolByCity(String city, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByPhone
	 *
	 */
	public Set<School> findSchoolByPhone(String phone_1) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByPhone
	 *
	 */
	public Set<School> findSchoolByPhone(String phone_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByPostcodeContaining
	 *
	 */
	public Set<School> findSchoolByPostcodeContaining(String postcode) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByPostcodeContaining
	 *
	 */
	public Set<School> findSchoolByPostcodeContaining(String postcode, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByPostcode
	 *
	 */
	public Set<School> findSchoolByPostcode(String postcode_1) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByPostcode
	 *
	 */
	public Set<School> findSchoolByPostcode(String postcode_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByCounty
	 *
	 */
	public Set<School> findSchoolByCounty(String county) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByCounty
	 *
	 */
	public Set<School> findSchoolByCounty(String county, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByProvince
	 *
	 */
	public Set<School> findSchoolByProvince(String province) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByProvince
	 *
	 */
	public Set<School> findSchoolByProvince(String province, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByCityContaining
	 *
	 */
	public Set<School> findSchoolByCityContaining(String city_1) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByCityContaining
	 *
	 */
	public Set<School> findSchoolByCityContaining(String city_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByIdContaining
	 *
	 */
	public Set<School> findSchoolByIdContaining(String id_1) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByIdContaining
	 *
	 */
	public Set<School> findSchoolByIdContaining(String id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByAddress
	 *
	 */
	public Set<School> findSchoolByAddress(String address) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByAddress
	 *
	 */
	public Set<School> findSchoolByAddress(String address, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolById
	 *
	 */
	public School findSchoolById(String id_2) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolById
	 *
	 */
	public School findSchoolById(String id_2, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllSchools
	 *
	 */
	public Set<School> findAllSchools() throws DataAccessException;

	/**
	 * JPQL Query - findAllSchools
	 *
	 */
	public Set<School> findAllSchools(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByName
	 *
	 */
	public Set<School> findSchoolByName(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByName
	 *
	 */
	public Set<School> findSchoolByName(String name_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByCountyContaining
	 *
	 */
	public Set<School> findSchoolByCountyContaining(String county_1) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByCountyContaining
	 *
	 */
	public Set<School> findSchoolByCountyContaining(String county_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByAddressContaining
	 *
	 */
	public Set<School> findSchoolByAddressContaining(String address_1) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByAddressContaining
	 *
	 */
	public Set<School> findSchoolByAddressContaining(String address_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByProvinceContaining
	 *
	 */
	public Set<School> findSchoolByProvinceContaining(String province_1) throws DataAccessException;

	/**
	 * JPQL Query - findSchoolByProvinceContaining
	 *
	 */
	public Set<School> findSchoolByProvinceContaining(String province_1, int startResult, int maxRows) throws DataAccessException;

}